package com.woniuxy.woniuticket.usermodule.dao;

import com.woniuxy.woniuticket.pojo.UsersLogin;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UsersLoginDAO {
    int deleteByPrimaryKey(Integer id);

    int insert(UsersLogin record);

    int insertSelective(UsersLogin record);

    UsersLogin selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(UsersLogin record);

    int updateByPrimaryKey(UsersLogin record);

    //通过用户账号（account）查询用户
    @Select("select * from t_users_login where account =#{account}")
    UsersLogin selectUserByAccount(UsersLogin usersLogin);
    @Select("update t_users_login set password =#{password} where account=#{account}")
    void updatePas(UsersLogin usersLogin);
}